'use strict';
module.exports = {
  success: (ctx, data, message) => {
    ctx.body = {
      status: true,
      data,
      message,
    };
    ctx.status = 200;
  },
  error: (ctx, status, error, message) => {
    ctx.body = {
      status: false,
      error,
      message,
    };
    ctx.status = status;
  },
};
